import { createRouter, createWebHistory } from "vue-router";

// 赵子航
import TabsView from "../views/tabs/TabsView.vue";
import HomeView from "@/views/tabs/home/HomeView.vue";
import MyView from "@/views/tabs/my/MyView.vue";
import MessageView from "@/views/tabs/message/MessageView.vue";
import OfficialView from "@/views/tabs/official/OfficialView.vue";

import ConfirmPayment from "@/views/tabs/home/ConfirmPayment.vue";
import MenZhenBaoGao from "@/views/tabs/home/MenZhenBaoGao.vue";
import Q1 from "@/views/tabs/home/Q1.vue";
import Q1copy from "@/views/tabs/home/Q1 copy.vue";
import Q2 from "@/views/tabs/home/Q2.vue";
import HouZhenChaXun from "@/views/tabs/home/HouZhenChaXun.vue";
import DianZiPiaoJu from "@/views/tabs/home/DianZiPiaoJu.vue";
import HouZhenShow from "@/views/tabs/home/HouZhenShow.vue";
import MenZhenDaoZhenDan from "@/views/tabs/home/MenZhenDaoZhenDan.vue";
import ZiDongQuHao from "@/views/tabs/home/ZiDongQuHao.vue";
import QuQuHao from "@/views/tabs/home/QuQuHao.vue";
import YiJiYuYue from "@/views/tabs/home/YiJiYuYue.vue";
import YiJiYuYue1 from "@/views/tabs/home/YiJiYuYue1.vue";
import YuYueXiangQing from "@/views/tabs/home/YuYueXiangQing.vue";
import YuYueXiangQingCopy from "@/views/tabs/home/YuYueXiangQing copy.vue";
import Q1copy2 from "@/views/tabs/home/Q1 copy 2.vue";

// 公告详情
import NoticeDetail from "@/components/zzh/NoticeDetail.vue";
// 科室列表
import DepartmentList from "@/views/tabs/official/DepartmentList.vue";
import DoctorList from "@/components/zzh/doctorLs/DoctorList.vue";
import DoctorHome from "@/components/zzh/doctorLs/DoctorHome.vue";
import FlagView from "@/components/zzh/doctorLs/FlagView.vue";
import IntroduceView from "@/components/zzh/doctorLs/IntroduceView.vue";
import DepartAll from "../views/tabs/official/DepartAll.vue";
import DepartAllDetail from "@/components/zzh/doctorLs/DepartAllDetail.vue";
// 范鹏帅
import ShowView from "@/views/tabs/home/ShowView.vue";
import AppointmentView from "@/views/tabs/home/AppointmentView.vue";
import paymentView from "@/views/tabs/home/paymentView.vue";
import PaymentOrder from "@/views/tabs/home/PaymentOrder.vue";

// 翟一 登录

import LoginView from "@/views/login/LoginView.vue";
import Phone from "@/views/login/Phone.vue";
import Face from "@/views/login/Face.vue";
import Launch from "@/views/login/Launch.vue";
import Zhao from "@/views/login/Zhao.vue";

//刘文立
import Talk_doctor from "@/views/tabs/message/Talk_doctor.vue";
import CurrentLogin from "@/views/tabs/message/CurrentLogin.vue";
import AIChat from "@/views/tabs/message/AIChat.vue";


//张宏超
import Register from "../views/tabs/home/zhc/Register.vue"
import Admission from "../views/tabs/home/zhc/Admission.vue";
import AdmissRegister from "@/views/tabs/home/zhc/AdmissRegister.vue";
import Certificate from "@/views/tabs/home/zhc/Certificate.vue";
import Mycertificate from "@/views/tabs/home/zhc/Mycertificate.vue";
import Addcaregiver from "@/views/tabs/home/zhc/Addcaregiver.vue";
import Map from "@/views/tabs/home/zhc/Map.vue";
import CertificateDetail from "@/views/tabs/home/zhc/CertificateDetail.vue";
import Dservice from "@/views/tabs/home/zhc/Dservice.vue";
import AddCopy from "@/views/tabs/home/zhc/AddCopy.vue";
import Position from "@/views/tabs/home/zhc/Position.vue";
import Order from "@/views/tabs/home/zhc/Order.vue";
import OrderDetail from "@/views/tabs/home/zhc/OrderDetail.vue";

const router = createRouter({
  history: createWebHistory(),
  routes: [
    // {
    //   path: "/",
    //   redirect: "/home",
    // },
    {
      path: "/tabs",
      name: "tabs",
      component: TabsView,
      children: [
        { path: "/home", name: "home", component: HomeView },
        { path: "/official", name: "official", component: OfficialView },
        { path: "/message", name: "message", component: MessageView },
        { path: "/my", name: "my", component: MyView },
      ],
    },
    {
      path: "/show",
      name: "show",
      component: ShowView,
    },
    {
      path: "/appointment",
      name: "appointment",
      component: AppointmentView,
    },
    {
      path: "/payment",
      name: "payment",
      component: paymentView,
    },
    {
      path: "/paymentOrder",
      name: "paymentOrder",
      component: PaymentOrder,
    },

    // 公告详情
    {
      path: "/noticeDetail/:id?",
      name: "noticeDetail",
      component: NoticeDetail,
    },
    // 公告详情
    {
      path: "/DepartList",
      name: "DepartList",
      component: DepartmentList,
    },
    // 科室
    {
      path: "/departAll",
      name: "departAll",
      component: DepartAll,
    },
    // 科室详情
    {
      path: "/departAllDetail",
      name: "departAllDetail",
      component: DepartAllDetail,
    },
    {
      path: "/confirmPayment",
      name: "confirmPayment",
      component: ConfirmPayment,
    },
    {
      path: "/MenZhenBaoGao",
      name: "MenZhenBaoGao",
      component: MenZhenBaoGao,
    },
    {
      path: "/Q1",
      name: "Q1",
      component: Q1,
    },
    {
      path: "/Q2",
      name: "Q2",
      component: Q2,
    },
    {
      path: "/HouZhenChaXun",
      name: "HouZhenChaXun",
      component: HouZhenChaXun,
    },
    {
      path: "/DianZiPiaoJu",
      name: "DianZiPiaoJu",
      component: DianZiPiaoJu,
    },
    {
      path: "/HouZhenShow",
      name: "HouZhenShow",
      component: HouZhenShow,
    },
    {
      path: "/MenZhenDaoZhenDan",
      name: "MenZhenDaoZhenDan",
      component: MenZhenDaoZhenDan,
    },
    {
      path: "/ZiDongQuHao",
      name: "ZiDongQuHao",
      component: ZiDongQuHao,
    },
    {
      path: "/QuQuHao",
      name: "QuQuHao",
      component: QuQuHao,
    },
    {
      path: "/YiJiYuYue",
      name: "YiJiYuYue",
      component: YiJiYuYue,
    },
    {
      path: "/YiJiYuYue1",
      name: "YiJiYuYue1",
      component: YiJiYuYue1,
    },
    {
      path: "/Q1copy",
      name: "Q1copy",
      component: Q1copy,
    },
    {
      path: "/YuYueXiangQing",
      name: "YuYueXiangQing",
      component: YuYueXiangQing,
    },
    {
      path: "/YuYueXiangQingCopy",
      name: "YuYueXiangQingCopy",
      component: YuYueXiangQingCopy,
    },
    {
      path: "/Q1copy2",
      name: "Q1copy2",
      component: Q1copy2,
    },

    // 医生详情3
    {
      path: "/DoctorLists",
      name: "DoctorLists",
      component: DoctorList,
    },
    // 医生主页3
    {
      path: "/doctorHome",
      name: "doctorHome",
      component: DoctorHome,
    },
    // BannersView
    {
      path: "/flagView",
      name: "flagView",
      component: FlagView,
    },
    {
      path: "/introduce",
      name: "introduce",
      component: IntroduceView,
    },

    // 范鹏帅
    {
      path: "/show",
      name: "show",
      component: ShowView,
    },
    {
      path: "/appointment",
      name: "appointment",
      component: AppointmentView,
    },
    {
      path: "/payment",
      name: "payment",
      component: paymentView,
    },
    {
      path: "/paymentOrder",
      name: "paymentOrder",
      component: PaymentOrder,
    },

    // 翟一
    // 登录页，验证码登录
    {
      path: "/login",
      name: "login",
      component: LoginView,
    },
    // 启动页
    {
      path: "/launch",
      component: Launch,
    },
    // 手机号密码登录
    {
      path: "/phone",
      component: Phone,
    },
    // 人脸验证
    {
      path: "/face",
      component: Face,
    },
    // 找回密码
    {
      path: "/zhao",
      component: Zhao,
    },
    {
      path: "/",
      redirect: "/launch", // 默认重定向到启动页
    },
    {
      path: "/currentLogin",
      name: "currentLogin",
      component: CurrentLogin,
    },
    {
      path: "/talk_doctor",
      name: "talk_doctor",
      component: Talk_doctor,
    },
    {
      path: "/AIChat",
      name: "AIChat",
      component: AIChat,
    },
    {path:'/register',name:'register',component:Register},
    {path:'/admission',name:'admission',component:Admission},//入院证确定
    {path:'/admissRegister',name:'admissRegister',component:AdmissRegister}, //入院登记
    {path:'/certificate',name:'certificate',component:Certificate}, //陪护须知
    {path:'/mycertificate',name:'mycertificate',component:Mycertificate}, //我的陪护证
    {path:'/addcaregiver',name:'addcaregiver',component:Addcaregiver}, //添加陪护证
    {path:'/map',name:'map',component:Map}, //地图
    {path:'/certificateDetail',name:'certificateDetail',component:CertificateDetail}, //陪护证详情
    {path:'/dservice',name:'dservice',component:Dservice}, //代寄服务
    {path:'/addCopy',name:'addCopy',component:AddCopy}, //申请邮寄
    {path:'/position',name:'position',component:Position}, //定位
    {path:'/order',name:'order',component:Order}, //订单
    {path:'/orderDetail',name:'orderDetail',component:OrderDetail}, //订单详情
  ],
});

export default router;
